package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品波形数据对象 smart_product_test_waveform
 *
 * @author minwie
 * @date 2023-03-26
 */
public class SmartProductTestWaveform extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 记录ID */
    @Excel(name = "记录ID")
    private Long productTestId;

    /** 数据 */
    @Excel(name = "数据")
    private String data;

    /** 注释 */
    @Excel(name = "注释")
    private String notes;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String productCode;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductTestId(Long productTestId)
    {
        this.productTestId = productTestId;
    }

    public Long getProductTestId()
    {
        return productTestId;
    }
    public void setData(String data)
    {
        this.data = data;
    }

    public String getData()
    {
        return data;
    }
    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes()
    {
        return notes;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public String getProductCode()
    {
        return productCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productTestId", getProductTestId())
                .append("data", getData())
                .append("notes", getNotes())
                .append("state", getState())
                .append("createDate", getCreateDate())
                .append("productCode", getProductCode())
                .toString();
    }
}
